package com.jecs.controller;

import com.jecs.business.Business;
import com.jecs.entity.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @param
 *
 * @DATA
 * @Author LiDaPeng
 * @Description
 */
@RestController
@RequestMapping("/ai")
public class Controller {
    @Autowired
    private Business business;

    @RequestMapping(value = "/talk", method = RequestMethod.POST)
    public Response talk(@RequestParam String sentence) throws Exception {
        return business.talk(sentence);
    }

}
